<!doctype html>

<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>currency.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>

<div class="clear"></div>

<h2><a href="closure_goog_i18n_currency.js.html">currency.js</a></h2>

<pre class="prettyprint lang-js">
<a name="line1"></a>// Copyright 2009 The Closure Library Authors. All Rights Reserved.
<a name="line2"></a>//
<a name="line3"></a>// Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
<a name="line4"></a>// you may not use this file except in compliance with the License.
<a name="line5"></a>// You may obtain a copy of the License at
<a name="line6"></a>//
<a name="line7"></a>//      http://www.apache.org/licenses/LICENSE-2.0
<a name="line8"></a>//
<a name="line9"></a>// Unless required by applicable law or agreed to in writing, software
<a name="line10"></a>// distributed under the License is distributed on an &quot;AS-IS&quot; BASIS,
<a name="line11"></a>// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<a name="line12"></a>// See the License for the specific language governing permissions and
<a name="line13"></a>// limitations under the License.
<a name="line14"></a>
<a name="line15"></a>
<a name="line16"></a>/**
<a name="line17"></a> * @fileoverview A utility to get better currency format pattern.
<a name="line18"></a> *
<a name="line19"></a> * This module implements a new currency format representation model. It
<a name="line20"></a> * provides 3 currency representation forms: global, portable and local. Local
<a name="line21"></a> * format is the most popular format people use to represent currency in its
<a name="line22"></a> * circulating country without worrying about how it should be distinguished
<a name="line23"></a> * from other currencies.  Global format is a formal representation in context
<a name="line24"></a> * of multiple currencies in same page, it is ISO 4217 currency code. Portable
<a name="line25"></a> * format is a compromise between global and local. It looks similar to how
<a name="line26"></a> * people would like to see how their currency is being represented in other
<a name="line27"></a> * media. While at the same time, it should be distinguishable to world&#39;s
<a name="line28"></a> * popular currencies (like USD, EUR) and currencies somewhat relevant in the
<a name="line29"></a> * area (like CNY in HK, though native currency is HKD). There is no guarantee
<a name="line30"></a> * of uniqueness.
<a name="line31"></a> *
<a name="line32"></a> */
<a name="line33"></a>
<a name="line34"></a>
<a name="line35"></a>goog.provide(&#39;goog.i18n.currency&#39;);
<a name="line36"></a>
<a name="line37"></a>
<a name="line38"></a>/**
<a name="line39"></a> * The mask of precision field.
<a name="line40"></a> * @private
<a name="line41"></a> */
<a name="line42"></a>goog.i18n.currency.PRECISION_MASK_ = 0x07;
<a name="line43"></a>
<a name="line44"></a>
<a name="line45"></a>/**
<a name="line46"></a> * Whether the currency sign should be positioned after the number.
<a name="line47"></a> * @private
<a name="line48"></a> */
<a name="line49"></a>goog.i18n.currency.POSITION_FLAG_ = 0x08;
<a name="line50"></a>
<a name="line51"></a>
<a name="line52"></a>/**
<a name="line53"></a> * Whether a space should be inserted between the number and currency sign.
<a name="line54"></a> * @private
<a name="line55"></a> */
<a name="line56"></a>goog.i18n.currency.SPACE_FLAG_ = 0x20;
<a name="line57"></a>
<a name="line58"></a>
<a name="line59"></a>/**
<a name="line60"></a> * This function will add tier2 currency support. Be default, only tier1
<a name="line61"></a> * (most popular currencies) are supported. If an application really needs
<a name="line62"></a> * to support some of the rarely used currencies, it should call this function
<a name="line63"></a> * before any other functions in this namespace.
<a name="line64"></a> */
<a name="line65"></a>goog.i18n.currency.addTier2Support = function() {
<a name="line66"></a>  for (var key in goog.i18n.currency.CurrencyInfoTier2) {
<a name="line67"></a>    goog.i18n.currency.CurrencyInfo[key] =
<a name="line68"></a>        goog.i18n.currency.CurrencyInfoTier2[key];
<a name="line69"></a>  }
<a name="line70"></a>};
<a name="line71"></a>
<a name="line72"></a>
<a name="line73"></a>/**
<a name="line74"></a> * Global currency pattern always uses ISO-4217 currency code as prefix. Local
<a name="line75"></a> * currency sign is added if it is different from currency code. Each currency
<a name="line76"></a> * is unique in this form. The negative side is that ISO code looks weird in
<a name="line77"></a> * some countries as people normally do not use it. Local currency sign
<a name="line78"></a> * alleviates the problem, but also makes it a little verbose.
<a name="line79"></a> *
<a name="line80"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line81"></a> * @return {string} Global currency pattern string for given currency.
<a name="line82"></a> */
<a name="line83"></a>goog.i18n.currency.getGlobalCurrencyPattern = function(currencyCode) {
<a name="line84"></a>  var info = goog.i18n.currency.CurrencyInfo[currencyCode];
<a name="line85"></a>  var patternNum = info[0];
<a name="line86"></a>  if (currencyCode == info[1]) {
<a name="line87"></a>    return goog.i18n.currency.getCurrencyPattern_(patternNum, info[1]);
<a name="line88"></a>  }
<a name="line89"></a>  return currencyCode + &#39; &#39; +
<a name="line90"></a>      goog.i18n.currency.getCurrencyPattern_(patternNum, info[1]);
<a name="line91"></a>};
<a name="line92"></a>
<a name="line93"></a>
<a name="line94"></a>/**
<a name="line95"></a> * Return global currency sign string for those applications
<a name="line96"></a> * that want to handle currency sign themselves.
<a name="line97"></a> *
<a name="line98"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line99"></a> * @return {string} Global currency sign for given currency.
<a name="line100"></a> */
<a name="line101"></a>goog.i18n.currency.getGlobalCurrencySign = function(currencyCode) {
<a name="line102"></a>  var info = goog.i18n.currency.CurrencyInfo[currencyCode];
<a name="line103"></a>  return (currencyCode == info[1]) ? currencyCode :
<a name="line104"></a>      currencyCode + &#39; &#39; + info[1];
<a name="line105"></a>};
<a name="line106"></a>
<a name="line107"></a>
<a name="line108"></a>/**
<a name="line109"></a> * Local currency pattern is the most frequently used pattern in currency&#39;s
<a name="line110"></a> * native region. It does not care about how it is distinguished from other
<a name="line111"></a> * currencies.
<a name="line112"></a> *
<a name="line113"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line114"></a> * @return {string} Local currency pattern string for given currency.
<a name="line115"></a> */
<a name="line116"></a>goog.i18n.currency.getLocalCurrencyPattern = function(currencyCode) {
<a name="line117"></a>  var info = goog.i18n.currency.CurrencyInfo[currencyCode];
<a name="line118"></a>  return goog.i18n.currency.getCurrencyPattern_(info[0], info[1]);
<a name="line119"></a>};
<a name="line120"></a>
<a name="line121"></a>
<a name="line122"></a>/**
<a name="line123"></a> * Returns local currency sign string for those applications that need to
<a name="line124"></a> * handle currency sign separately.
<a name="line125"></a> *
<a name="line126"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line127"></a> * @return {string} Local currency sign for given currency.
<a name="line128"></a> */
<a name="line129"></a>goog.i18n.currency.getLocalCurrencySign = function(currencyCode) {
<a name="line130"></a>  return goog.i18n.currency.CurrencyInfo[currencyCode][1];
<a name="line131"></a>};
<a name="line132"></a>
<a name="line133"></a>
<a name="line134"></a>/**
<a name="line135"></a> * Portable currency pattern is a compromise between local and global. It is
<a name="line136"></a> * not a mere blend or mid-way between the two. Currency sign is chosen so that
<a name="line137"></a> * it looks familiar to native users. It also has enough information to
<a name="line138"></a> * distinguish itself from other popular currencies in its native region.
<a name="line139"></a> * In this pattern, currency sign symbols that has availability problem in
<a name="line140"></a> * popular fonts are also avoided.
<a name="line141"></a> *
<a name="line142"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line143"></a> * @return {string} Portable currency pattern string for given currency.
<a name="line144"></a> */
<a name="line145"></a>goog.i18n.currency.getPortableCurrencyPattern = function(currencyCode) {
<a name="line146"></a>  var info = goog.i18n.currency.CurrencyInfo[currencyCode];
<a name="line147"></a>  return goog.i18n.currency.getCurrencyPattern_(info[0], info[2]);
<a name="line148"></a>};
<a name="line149"></a>
<a name="line150"></a>
<a name="line151"></a>/**
<a name="line152"></a> * Return portable currency sign string for those applications that need to
<a name="line153"></a> * handle currency sign themselves.
<a name="line154"></a> *
<a name="line155"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line156"></a> * @return {string} Portable currency sign for given currency.
<a name="line157"></a> */
<a name="line158"></a>goog.i18n.currency.getPortableCurrencySign = function(currencyCode) {
<a name="line159"></a>  return goog.i18n.currency.CurrencyInfo[currencyCode][2];
<a name="line160"></a>};
<a name="line161"></a>
<a name="line162"></a>
<a name="line163"></a>/**
<a name="line164"></a> * This function returns the default currency sign position. Some applications
<a name="line165"></a> * may want to handle currency sign and currency amount separately. This
<a name="line166"></a> * function can be used in such situations to correctly position the currency
<a name="line167"></a> * sign relative to the amount.
<a name="line168"></a> *
<a name="line169"></a> * To match the behavior of ICU, position is not determined by display locale.
<a name="line170"></a> *
<a name="line171"></a> * @param {string} currencyCode ISO-4217 3-letter currency code.
<a name="line172"></a> * @return {boolean} true if currency should be positioned before amount field.
<a name="line173"></a> */
<a name="line174"></a>goog.i18n.currency.isPrefixSignPosition = function(currencyCode) {
<a name="line175"></a>  return (goog.i18n.currency.CurrencyInfo[currencyCode][0] &amp;
<a name="line176"></a>          goog.i18n.currency.POSITION_FLAG_) == 0;
<a name="line177"></a>};
<a name="line178"></a>
<a name="line179"></a>
<a name="line180"></a>/**
<a name="line181"></a> * This function constructs the currency pattern. Currency sign is provided. The
<a name="line182"></a> * pattern information is encoded in patternNum.
<a name="line183"></a> *
<a name="line184"></a> * @param {number} patternNum Encoded pattern number that has
<a name="line185"></a> *     currency pattern information.
<a name="line186"></a> * @param {string} sign The currency sign that will be used in pattern.
<a name="line187"></a> * @return {string} currency pattern string.
<a name="line188"></a> * @private
<a name="line189"></a> */
<a name="line190"></a>goog.i18n.currency.getCurrencyPattern_ = function(patternNum, sign) {
<a name="line191"></a>  var strParts = [&#39;#,##0&#39;];
<a name="line192"></a>  var precision = patternNum &amp; goog.i18n.currency.PRECISION_MASK_;
<a name="line193"></a>  if (precision &gt; 0) {
<a name="line194"></a>    strParts.push(&#39;.&#39;);
<a name="line195"></a>    for (var i = 0; i &lt; precision; i++) {
<a name="line196"></a>      strParts.push(&#39;0&#39;);
<a name="line197"></a>    }
<a name="line198"></a>  }
<a name="line199"></a>  if ((patternNum &amp; goog.i18n.currency.POSITION_FLAG_) == 0) {
<a name="line200"></a>    strParts.unshift((patternNum &amp; goog.i18n.currency.SPACE_FLAG_) ?
<a name="line201"></a>                     &quot;&#39; &quot; : &quot;&#39;&quot;);
<a name="line202"></a>    strParts.unshift(sign);
<a name="line203"></a>    strParts.unshift(&quot;&#39;&quot;);
<a name="line204"></a>  } else {
<a name="line205"></a>    strParts.push((patternNum &amp; goog.i18n.currency.SPACE_FLAG_) ? &quot; &#39;&quot; : &quot;&#39;&quot;,
<a name="line206"></a>                  sign, &quot;&#39;&quot;);
<a name="line207"></a>  }
<a name="line208"></a>  return strParts.join(&#39;&#39;);
<a name="line209"></a>};
<a name="line210"></a>
<a name="line211"></a>
<a name="line212"></a>/**
<a name="line213"></a> * Modify currency pattern string by adjusting precision for given currency.
<a name="line214"></a> * Standard currency pattern will have 2 digit after decimal point.
<a name="line215"></a> * Examples:
<a name="line216"></a> *   $#,##0.00 -&gt;  $#,##0    (precision == 0)
<a name="line217"></a> *   $#,##0.00 -&gt;  $#,##0.0  (precision == 1)
<a name="line218"></a> *   $#,##0.00 -&gt;  $#,##0.000  (precision == 3)
<a name="line219"></a> *
<a name="line220"></a> * @param {string} pattern currency pattern string.
<a name="line221"></a> * @param {string} currencyCode 3-letter currency code.
<a name="line222"></a> * @return {string} modified currency pattern string.
<a name="line223"></a> */
<a name="line224"></a>goog.i18n.currency.adjustPrecision = function(pattern, currencyCode) {
<a name="line225"></a>  var strParts = [&#39;0&#39;];
<a name="line226"></a>  var info = goog.i18n.currency.CurrencyInfo[currencyCode];
<a name="line227"></a>  var precision = info[0] &amp; goog.i18n.currency.PRECISION_MASK_;
<a name="line228"></a>  if (precision &gt; 0) {
<a name="line229"></a>    strParts.push(&#39;.&#39;);
<a name="line230"></a>    for (var i = 0; i &lt; precision; i++) {
<a name="line231"></a>      strParts.push(&#39;0&#39;);
<a name="line232"></a>    }
<a name="line233"></a>  }
<a name="line234"></a>  return pattern.replace(/0.00/g, strParts.join(&#39;&#39;));
<a name="line235"></a>};
<a name="line236"></a>
<a name="line237"></a>
<a name="line238"></a>/**
<a name="line239"></a> * Tier 1 currency information.
<a name="line240"></a> *
<a name="line241"></a> * The first number in the array is a combination of the precision mask and
<a name="line242"></a> * other flags. The precision mask indicates how many decimal places to show for
<a name="line243"></a> * the currency. Valid values are [0..7]. The position flag indicates whether
<a name="line244"></a> * the currency sign should be positioned after the number. Valid values are 0
<a name="line245"></a> * (before the number) or 16 (after the number). The space flag indicates
<a name="line246"></a> * whether a space should be inserted between the currency sign and number.
<a name="line247"></a> * Valid values are 0 (no space) and 24 (space).
<a name="line248"></a> *
<a name="line249"></a> * The number in the array is calculated by adding together the mask and flag
<a name="line250"></a> * values. For example:
<a name="line251"></a> *
<a name="line252"></a> * 0: no precision (0), currency sign first (0), no space (0)
<a name="line253"></a> * 2: two decimals precision (2), currency sign first (0), no space (0)
<a name="line254"></a> * 18: two decimals precision (2), currency sign last (16), no space (0)
<a name="line255"></a> * 42: two decimals precision (2), currency sign last (16), space (24)
<a name="line256"></a> *
<a name="line257"></a> * @type {!Object.&lt;!Array&gt;}
<a name="line258"></a> */
<a name="line259"></a>goog.i18n.currency.CurrencyInfo = {
<a name="line260"></a>  &#39;AED&#39;: [2, &#39;dh&#39;, &#39;\u062f.\u0625.&#39;, &#39;DH&#39;],
<a name="line261"></a>  &#39;AUD&#39;: [2, &#39;$&#39;, &#39;AU$&#39;],
<a name="line262"></a>  &#39;BDT&#39;: [2, &#39;\u09F3&#39;, &#39;Tk&#39;],
<a name="line263"></a>  &#39;BRL&#39;: [2, &#39;R$&#39;, &#39;R$&#39;],
<a name="line264"></a>  &#39;CAD&#39;: [2, &#39;$&#39;, &#39;C$&#39;],
<a name="line265"></a>  &#39;CHF&#39;: [2, &#39;CHF&#39;, &#39;CHF&#39;],
<a name="line266"></a>  &#39;CLP&#39;: [0, &#39;$&#39;, &#39;CL$&#39;],
<a name="line267"></a>  &#39;CNY&#39;: [2, &#39;&yen;&#39;, &#39;RMB&yen;&#39;],
<a name="line268"></a>  &#39;COP&#39;: [0, &#39;$&#39;, &#39;COL$&#39;],
<a name="line269"></a>  &#39;CRC&#39;: [0, &#39;\u20a1&#39;, &#39;CR\u20a1&#39;],
<a name="line270"></a>  &#39;CZK&#39;: [2, &#39;K\u010d&#39;, &#39;K\u010d&#39;],
<a name="line271"></a>  &#39;DKK&#39;: [18, &#39;kr&#39;, &#39;kr&#39;],
<a name="line272"></a>  &#39;DOP&#39;: [2, &#39;$&#39;, &#39;RD$&#39;],
<a name="line273"></a>  &#39;EGP&#39;: [2, &#39;&pound;&#39;, &#39;LE&#39;],
<a name="line274"></a>  &#39;EUR&#39;: [18, &#39;&euro;&#39;, &#39;&euro;&#39;],
<a name="line275"></a>  &#39;GBP&#39;: [2, &#39;&pound;&#39;, &#39;GB&pound;&#39;],
<a name="line276"></a>  &#39;HKD&#39;: [2, &#39;$&#39;, &#39;HK$&#39;],
<a name="line277"></a>  &#39;ILS&#39;: [2, &#39;\u20AA&#39;, &#39;IL\u20AA&#39;],
<a name="line278"></a>  &#39;INR&#39;: [2, &#39;\u20B9&#39;, &#39;Rs&#39;],
<a name="line279"></a>  &#39;ISK&#39;: [0, &#39;kr&#39;, &#39;kr&#39;],
<a name="line280"></a>  &#39;JMD&#39;: [2, &#39;$&#39;, &#39;JA$&#39;],
<a name="line281"></a>  &#39;JPY&#39;: [0, &#39;&yen;&#39;, &#39;JP&yen;&#39;],
<a name="line282"></a>  &#39;KRW&#39;: [0, &#39;\u20A9&#39;, &#39;KR&#8361;&#39;],
<a name="line283"></a>  &#39;LKR&#39;: [2, &#39;Rs&#39;, &#39;SLRs&#39;],
<a name="line284"></a>  &#39;MNT&#39;: [0, &#39;\u20AE&#39;, &#39;MN&#8366;&#39;],
<a name="line285"></a>  &#39;MXN&#39;: [2, &#39;$&#39;, &#39;Mex$&#39;],
<a name="line286"></a>  &#39;MYR&#39;: [2, &#39;RM&#39;, &#39;RM&#39;],
<a name="line287"></a>  &#39;NOK&#39;: [18, &#39;kr&#39;, &#39;NOkr&#39;],
<a name="line288"></a>  &#39;PAB&#39;: [2, &#39;B/.&#39;, &#39;B/.&#39;],
<a name="line289"></a>  &#39;PEN&#39;: [2, &#39;S/.&#39;, &#39;S/.&#39;],
<a name="line290"></a>  &#39;PHP&#39;: [2, &#39;\u20B1&#39;, &#39;Php&#39;],
<a name="line291"></a>  &#39;PKR&#39;: [0, &#39;Rs&#39;, &#39;PKRs.&#39;],
<a name="line292"></a>  &#39;RUB&#39;: [42, &#39;&#1088;&#1091;&#1073;.&#39;, &#39;&#1088;&#1091;&#1073;.&#39;],
<a name="line293"></a>  &#39;SAR&#39;: [2, &#39;Rial&#39;, &#39;Rial&#39;],
<a name="line294"></a>  &#39;SEK&#39;: [2, &#39;kr&#39;, &#39;kr&#39;],
<a name="line295"></a>  &#39;SGD&#39;: [2, &#39;$&#39;, &#39;S$&#39;],
<a name="line296"></a>  &#39;THB&#39;: [2, &#39;\u0e3f&#39;, &#39;THB&#39;],
<a name="line297"></a>  &#39;TRY&#39;: [2, &#39;TL&#39;, &#39;YTL&#39;],
<a name="line298"></a>  &#39;TWD&#39;: [2, &#39;NT$&#39;, &#39;NT$&#39;],
<a name="line299"></a>  &#39;USD&#39;: [2, &#39;$&#39;, &#39;US$&#39;],
<a name="line300"></a>  &#39;UYU&#39;: [2, &#39;$&#39;, &#39;UY$&#39;],
<a name="line301"></a>  &#39;VND&#39;: [0, &#39;\u20AB&#39;, &#39;VN\u20AB&#39;],
<a name="line302"></a>  &#39;YER&#39;: [0, &#39;Rial&#39;, &#39;Rial&#39;],
<a name="line303"></a>  &#39;ZAR&#39;: [2, &#39;R&#39;, &#39;ZAR&#39;]
<a name="line304"></a>};
<a name="line305"></a>
<a name="line306"></a>
<a name="line307"></a>/**
<a name="line308"></a> * Tier 2 currency information.
<a name="line309"></a> * @type {!Object.&lt;!Array&gt;}
<a name="line310"></a> */
<a name="line311"></a>goog.i18n.currency.CurrencyInfoTier2 = {
<a name="line312"></a>  &#39;AFN&#39;: [16, &#39;Af.&#39;, &#39;AFN&#39;],
<a name="line313"></a>  &#39;ALL&#39;: [0, &#39;Lek&#39;, &#39;Lek&#39;],
<a name="line314"></a>  &#39;AMD&#39;: [0, &#39;Dram&#39;, &#39;dram&#39;],
<a name="line315"></a>  &#39;AOA&#39;: [2, &#39;Kz&#39;, &#39;Kz&#39;],
<a name="line316"></a>  &#39;ARS&#39;: [2, &#39;$&#39;, &#39;AR$&#39;],
<a name="line317"></a>  &#39;AWG&#39;: [2, &#39;Afl.&#39;, &#39;Afl.&#39;],
<a name="line318"></a>  &#39;AZN&#39;: [2, &#39;man.&#39;, &#39;man.&#39;],
<a name="line319"></a>  &#39;BAM&#39;: [18, &#39;KM&#39;, &#39;KM&#39;],
<a name="line320"></a>  &#39;BBD&#39;: [2, &#39;$&#39;, &#39;Bds$&#39;],
<a name="line321"></a>  &#39;BGN&#39;: [2, &#39;lev&#39;, &#39;lev&#39;],
<a name="line322"></a>  &#39;BHD&#39;: [3, &#39;din&#39;, &#39;din&#39;],
<a name="line323"></a>  &#39;BIF&#39;: [0, &#39;FBu&#39;, &#39;FBu&#39;],
<a name="line324"></a>  &#39;BMD&#39;: [2, &#39;$&#39;, &#39;BD$&#39;],
<a name="line325"></a>  &#39;BND&#39;: [2, &#39;$&#39;, &#39;B$&#39;],
<a name="line326"></a>  &#39;BOB&#39;: [2, &#39;Bs&#39;, &#39;Bs&#39;],
<a name="line327"></a>  &#39;BSD&#39;: [2, &#39;$&#39;, &#39;BS$&#39;],
<a name="line328"></a>  &#39;BTN&#39;: [2, &#39;Nu.&#39;, &#39;Nu.&#39;],
<a name="line329"></a>  &#39;BWP&#39;: [2, &#39;P&#39;, &#39;pula&#39;],
<a name="line330"></a>  &#39;BYR&#39;: [0, &#39;BYR&#39;, &#39;BYR&#39;],
<a name="line331"></a>  &#39;BZD&#39;: [2, &#39;$&#39;, &#39;BZ$&#39;],
<a name="line332"></a>  &#39;CDF&#39;: [2, &#39;FrCD&#39;, &#39;CDF&#39;],
<a name="line333"></a>  &#39;CUC&#39;: [1, &#39;$&#39;, &#39;CUC$&#39;],
<a name="line334"></a>  &#39;CUP&#39;: [2, &#39;$&#39;, &#39;CU$&#39;],
<a name="line335"></a>  &#39;CVE&#39;: [2, &#39;CVE&#39;, &#39;Esc&#39;],
<a name="line336"></a>  &#39;DJF&#39;: [0, &#39;Fdj&#39;, &#39;Fdj&#39;],
<a name="line337"></a>  &#39;DZD&#39;: [2, &#39;din&#39;, &#39;din&#39;],
<a name="line338"></a>  &#39;ERN&#39;: [2, &#39;Nfk&#39;, &#39;Nfk&#39;],
<a name="line339"></a>  &#39;ETB&#39;: [2, &#39;Birr&#39;, &#39;Birr&#39;],
<a name="line340"></a>  &#39;FJD&#39;: [2, &#39;$&#39;, &#39;FJ$&#39;],
<a name="line341"></a>  &#39;FKP&#39;: [2, &#39;&pound;&#39;, &#39;FK&pound;&#39;],
<a name="line342"></a>  &#39;GEL&#39;: [2, &#39;GEL&#39;, &#39;GEL&#39;],
<a name="line343"></a>  &#39;GHS&#39;: [2, &#39;GHS&#39;, &#39;GHS&#39;],
<a name="line344"></a>  &#39;GIP&#39;: [2, &#39;&pound;&#39;, &#39;GI&pound;&#39;],
<a name="line345"></a>  &#39;GMD&#39;: [2, &#39;GMD&#39;, &#39;GMD&#39;],
<a name="line346"></a>  &#39;GNF&#39;: [0, &#39;FG&#39;, &#39;FG&#39;],
<a name="line347"></a>  &#39;GTQ&#39;: [2, &#39;Q&#39;, &#39;GTQ&#39;],
<a name="line348"></a>  &#39;GYD&#39;: [0, &#39;$&#39;, &#39;GY$&#39;],
<a name="line349"></a>  &#39;HNL&#39;: [2, &#39;L&#39;, &#39;HNL&#39;],
<a name="line350"></a>  &#39;HRK&#39;: [2, &#39;kn&#39;, &#39;kn&#39;],
<a name="line351"></a>  &#39;HTG&#39;: [2, &#39;HTG&#39;, &#39;HTG&#39;],
<a name="line352"></a>  &#39;HUF&#39;: [0, &#39;Ft&#39;, &#39;Ft&#39;],
<a name="line353"></a>  &#39;IDR&#39;: [0, &#39;Rp&#39;, &#39;Rp&#39;],
<a name="line354"></a>  &#39;IQD&#39;: [0, &#39;din&#39;, &#39;IQD&#39;],
<a name="line355"></a>  &#39;IRR&#39;: [0, &#39;Rial&#39;, &#39;IRR&#39;],
<a name="line356"></a>  &#39;JOD&#39;: [3, &#39;din&#39;, &#39;JOD&#39;],
<a name="line357"></a>  &#39;KES&#39;: [2, &#39;Ksh&#39;, &#39;Ksh&#39;],
<a name="line358"></a>  &#39;KGS&#39;: [2, &#39;KGS&#39;, &#39;KGS&#39;],
<a name="line359"></a>  &#39;KHR&#39;: [2, &#39;Riel&#39;, &#39;KHR&#39;],
<a name="line360"></a>  &#39;KMF&#39;: [0, &#39;CF&#39;, &#39;KMF&#39;],
<a name="line361"></a>  &#39;KPW&#39;: [0, &#39;\u20A9KP&#39;, &#39;KPW&#39;],
<a name="line362"></a>  &#39;KWD&#39;: [3, &#39;din&#39;, &#39;KWD&#39;],
<a name="line363"></a>  &#39;KYD&#39;: [2, &#39;$&#39;, &#39;KY$&#39;],
<a name="line364"></a>  &#39;KZT&#39;: [2, &#39;\u20B8&#39;, &#39;KZT&#39;],
<a name="line365"></a>  &#39;LAK&#39;: [0, &#39;\u20AD&#39;, &#39;\u20AD&#39;],
<a name="line366"></a>  &#39;LBP&#39;: [0, &#39;L&pound;&#39;, &#39;LBP&#39;],
<a name="line367"></a>  &#39;LRD&#39;: [2, &#39;$&#39;, &#39;L$&#39;],
<a name="line368"></a>  &#39;LSL&#39;: [2, &#39;LSL&#39;, &#39;LSL&#39;],
<a name="line369"></a>  &#39;LTL&#39;: [2, &#39;Lt&#39;, &#39;Lt&#39;],
<a name="line370"></a>  &#39;LVL&#39;: [2, &#39;Ls&#39;, &#39;Ls&#39;],
<a name="line371"></a>  &#39;LYD&#39;: [3, &#39;din&#39;, &#39;LD&#39;],
<a name="line372"></a>  &#39;MAD&#39;: [2, &#39;dh&#39;, &#39;MAD&#39;],
<a name="line373"></a>  &#39;MDL&#39;: [2, &#39;MDL&#39;, &#39;MDL&#39;],
<a name="line374"></a>  &#39;MGA&#39;: [0, &#39;Ar&#39;, &#39;MGA&#39;],
<a name="line375"></a>  &#39;MKD&#39;: [2, &#39;din&#39;, &#39;MKD&#39;],
<a name="line376"></a>  &#39;MMK&#39;: [0, &#39;K&#39;, &#39;MMK&#39;],
<a name="line377"></a>  &#39;MOP&#39;: [2, &#39;MOP&#39;, &#39;MOP$&#39;],
<a name="line378"></a>  &#39;MRO&#39;: [0, &#39;MRO&#39;, &#39;MRO&#39;],
<a name="line379"></a>  &#39;MUR&#39;: [0, &#39;MURs&#39;, &#39;MURs&#39;],
<a name="line380"></a>  &#39;MWK&#39;: [2, &#39;MWK&#39;, &#39;MWK&#39;],
<a name="line381"></a>  &#39;MZN&#39;: [2, &#39;MTn&#39;, &#39;MTn&#39;],
<a name="line382"></a>  &#39;NAD&#39;: [2, &#39;$&#39;, &#39;N$&#39;],
<a name="line383"></a>  &#39;NGN&#39;: [2, &#39;\u20A6&#39;, &#39;NG\u20A6&#39;],
<a name="line384"></a>  &#39;NIO&#39;: [2, &#39;C$&#39;, &#39;C$&#39;],
<a name="line385"></a>  &#39;NPR&#39;: [2, &#39;Rs&#39;, &#39;NPRs&#39;],
<a name="line386"></a>  &#39;NZD&#39;: [2, &#39;$&#39;, &#39;NZ$&#39;],
<a name="line387"></a>  &#39;OMR&#39;: [3, &#39;Rial&#39;, &#39;OMR&#39;],
<a name="line388"></a>  &#39;PGK&#39;: [2, &#39;PGK&#39;, &#39;PGK&#39;],
<a name="line389"></a>  &#39;PLN&#39;: [2, &#39;z\u0142&#39;, &#39;z\u0142&#39;],
<a name="line390"></a>  &#39;PYG&#39;: [0, &#39;Gs&#39;, &#39;PYG&#39;],
<a name="line391"></a>  &#39;QAR&#39;: [2, &#39;Rial&#39;, &#39;QR&#39;],
<a name="line392"></a>  &#39;RON&#39;: [2, &#39;RON&#39;, &#39;RON&#39;],
<a name="line393"></a>  &#39;RSD&#39;: [0, &#39;din&#39;, &#39;RSD&#39;],
<a name="line394"></a>  &#39;RWF&#39;: [0, &#39;RF&#39;, &#39;RF&#39;],
<a name="line395"></a>  &#39;SBD&#39;: [2, &#39;$&#39;, &#39;SI$&#39;],
<a name="line396"></a>  &#39;SCR&#39;: [2, &#39;SCR&#39;, &#39;SCR&#39;],
<a name="line397"></a>  &#39;SDG&#39;: [2, &#39;SDG&#39;, &#39;SDG&#39;],
<a name="line398"></a>  &#39;SHP&#39;: [2, &#39;&pound;&#39;, &#39;SH&pound;&#39;],
<a name="line399"></a>  &#39;SLL&#39;: [0, &#39;SLL&#39;, &#39;SLL&#39;],
<a name="line400"></a>  &#39;SOS&#39;: [0, &#39;SOS&#39;, &#39;SOS&#39;],
<a name="line401"></a>  &#39;SRD&#39;: [2, &#39;$&#39;, &#39;SR$&#39;],
<a name="line402"></a>  &#39;STD&#39;: [0, &#39;Db&#39;, &#39;Db&#39;],
<a name="line403"></a>  &#39;SYP&#39;: [16, &#39;&pound;&#39;, &#39;SY&pound;&#39;],
<a name="line404"></a>  &#39;SZL&#39;: [2, &#39;SZL&#39;, &#39;SZL&#39;],
<a name="line405"></a>  &#39;TJS&#39;: [2, &#39;Som&#39;, &#39;TJS&#39;],
<a name="line406"></a>  &#39;TND&#39;: [3, &#39;din&#39;, &#39;DT&#39;],
<a name="line407"></a>  &#39;TOP&#39;: [2, &#39;T$&#39;, &#39;T$&#39;],
<a name="line408"></a>  &#39;TTD&#39;: [2, &#39;$&#39;, &#39;TT$&#39;],
<a name="line409"></a>  &#39;TZS&#39;: [0, &#39;TSh&#39;, &#39;TSh&#39;],
<a name="line410"></a>  &#39;UAH&#39;: [2, &#39;\u20B4&#39;, &#39;UAH&#39;],
<a name="line411"></a>  &#39;UGX&#39;: [0, &#39;UGX&#39;, &#39;UGX&#39;],
<a name="line412"></a>  &#39;UYU&#39;: [1, &#39;$&#39;, &#39;$U&#39;],
<a name="line413"></a>  &#39;UZS&#39;: [0, &#39;so\u02bcm&#39;, &#39;UZS&#39;],
<a name="line414"></a>  &#39;VEF&#39;: [2, &#39;Bs&#39;, &#39;Bs&#39;],
<a name="line415"></a>  &#39;VUV&#39;: [0, &#39;VUV&#39;, &#39;VUV&#39;],
<a name="line416"></a>  &#39;WST&#39;: [2, &#39;WST&#39;, &#39;WST&#39;],
<a name="line417"></a>  &#39;XAF&#39;: [0, &#39;FCFA&#39;, &#39;FCFA&#39;],
<a name="line418"></a>  &#39;XCD&#39;: [2, &#39;$&#39;, &#39;EC$&#39;],
<a name="line419"></a>  &#39;XOF&#39;: [0, &#39;CFA&#39;, &#39;CFA&#39;],
<a name="line420"></a>  &#39;XPF&#39;: [0, &#39;FCFP&#39;, &#39;FCFP&#39;],
<a name="line421"></a>  &#39;ZMK&#39;: [0, &#39;ZMK&#39;, &#39;ZMK&#39;]
<a name="line422"></a>};
</pre>


</body>
</html>
